#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;

int main()
{
    int A, B;
    cin >> A >> B;
    if (A % B == 0 || B % A == 0)
        cout << "Sao Multiplos";
    else
        cout << "Nao sao Multiplos";
    return 0;
}